{assign var=formId value='add'}
<div id="content">
    <div class="highlight">
		{$menu}
        {include file="admin/toolbar.temp.html" title=toolbar}
        {if $infoText}
        <div class="{$infoClass}">
            <h4>Result:</h4>
            <p>{$infoText}</p>
        </div>
        {/if}
        <div class="formType">
            <form action="{$base_url}" method="post" id="{$formId}" name="{$formId}">
                <fieldset>
                	<div class="left">
                    	<div class="titles">{l s='infoneed'}</div>
                            <ul class="tabs">
                                {if $objectLanguages}
                                    {foreach $objectLanguages as $objectlang} 
                                    	<li class="tab {if $objectlang@first}selected{/if}">{$objectlang->getField('name')}</li>
                                    {/foreach}                                   
                                {/if}                        
                            </ul>
                            {if $objectLanguages}
                                {foreach $objectLanguages as $objectlang} 
                                    
                                    <div class="tabcontent {if $objectlang@first}selected{/if}">
                                        <p>
                                            <label for="name">{l s='name'} *</label>
                                            <span>{l s='name_help'}</span>
                                            <input type="text" name="{$objectlang->getField('code')}_name" value="{$objectInfo->getFieldLangAdmin($objectlang->getField('code'),'name')}" />
                                        </p>
                                        <p>
                                            <label for="about">{l s='about'} </label>
                                            <span>{l s='about_help'}</span>
                                            <textarea name="{$objectlang->getField('code')}_about" class="mceSimple" style="width:98%">
                                                {$objectInfo->getFieldLangAdmin($objectlang->getField('code'),'about')}
                                            </textarea>
                                        </p>
                                        <p>
                                            <label for="address">{l s='address'} </label>
                                            <span>{l s='address_help'}</span>
                                            <input type="text" name="{$objectlang->getField('code')}_address" value="{$objectInfo->getFieldLangAdmin($objectlang->getField('code'),'address')}" />
                                        </p>                                                                                      
                                        <br class="clear">
                                    </div>
        
                                {/foreach}                                   
                            {/if}                         
                            <p>
                                <br />
                                <label for="cell">{l s='premissforuser'}</label>
                                <span>{l s='help_premissforuser'}</span>
                                <br />
                                {if $objectModules}
                                    {foreach from = $objectModules.data item = object}
                                    	
                                    		<span class="module"><input type="checkbox" name="module[]" value="{$object->getField('code')}" {foreach from = $module item = codemodule}{if $object->getField('code') eq $codemodule}checked="checked"{/if}{/foreach} style="width:30px;"/> {$object->getFieldLangAdmin($lang, 'name')}</span>
                                    	
                                    {/foreach}                         
                                {/if}
                            </p>                         
                                                                           
                    </div>
                    <div class="right">
                    	<div class="titles">{l s='infononeed'}</div>
                        <div id="accordion">
                            
                            <div class="title">{l s='properties'}</div>
                            
                            <div class="content first">
                            
                                <p>
                                    <label for="username">{l s='username'} *</label>
                                    <span>{l s='help_username'}</span>
                                    <input type="text" name="username" value="{$username}" />
                                </p>  
                                <p>
                                    <label for="password">{l s='password'}</label>
                                    <span>{l s='help_password'}</span>
                                    <input type="password" name="password" value="" />
                                </p>
                                <p>
                                    <label for="password">{l s='confirm'}</label>
                                    <span>{l s='confirm_help'}</span>
                                    <input type="password" name="confirm" value="{$confirm}" />
                                </p>                      
                                <p>
                                    <label for="email">{l s='email'} *</label>
                                    <span>{l s='email_help'}</span>
                                    <input type="text" name="email" value="{$email}" />
                                </p>                        
                                 <p>
                                    <label for="status">{l s='status'} *</label>
                                    <span>{l s='help_status'}</span>
                                    <select name="status">
                                    {$listStatus}
                                    </select>
                                </p>                                                            
    
                            </div>
    
                            <div class="title">{l s='optionmore'}</div>
                            
                            <div class="content">
                                <p>
                                    <label for="tel">{l s='tel'}</label>
                                    <span>{l s='tel_help'}</span>
                                    <input type="text" name="tel" value="{$tel}" />
                                </p>
                                <p>
                                <label for="cell">{l s='cell'}</label>
                                <span>{l s='cell_help'}</span>
                                <input type="text" name="cell" value="{$cell}" />
                                </p>                        
                                <p>
                                    <label for="fax">{l s='fax'}</label>
                                    <span>{l s='fax_help'}</span>
                                    <input type="text" name="fax" value="{$fax}" />
                                </p> 
                            </div>
                            
                        </div>                        

                    </div>
                    <div class="over">  
                        <p class="btnType">
                            <input type="hidden" id="op"  name="op" value="{$op}" />
                            <input type="hidden" id="act" name="act" value="{$act}" />
                            <input type="hidden" id="oId" name="oId" value="{$oId}" />
                            <input type="hidden" id="pid" name="pid" value="{$pid}" />
                            <input type="hidden" id="type" name="type" value="{$pid}" />
                            <input type="hidden" id="plus" name="plus" value="saveItem" />
                        </p>                                          
                    </div>                   
                </fieldset>
            </form>
        </div>
    </div>
</div>